import Vue from 'vue'
import App from './App.vue'
import router from './router'
import * as echarts from "echarts";
import './assets/reset.css'
import {
  Loading, Icon, Carousel, CarouselItem, Pagination,
  Radio, RadioGroup, RadioButton, CheckboxButton,
  Checkbox, CheckboxGroup, Button, DropdownMenu,
  Dropdown, DropdownItem, Table, TableColumn, Popover, Select, Option,
  Input, Tooltip, Collapse, CollapseItem, Tag, Form, FormItem, Row, Col, Dialog, Tree
} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import lang from 'element-ui/lib/locale/lang/en'
import locale from 'element-ui/lib/locale'
import directive from './directive' // directive

Vue.use(directive)


lang.el.pagination.pagesize = ""
lang.el.pagination.pageClassifier = "page"

// 设置语言
locale.use(lang)

Vue.use(Icon)
Vue.use(Carousel)
Vue.use(CarouselItem)
Vue.use(Pagination)
Vue.use(Radio)
Vue.use(RadioGroup)
Vue.use(RadioButton)
Vue.use(CheckboxButton)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
Vue.use(Button)
Vue.use(DropdownMenu)
Vue.use(Dropdown)
Vue.use(DropdownItem)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Popover)
Vue.use(Select)
Vue.use(Option)
Vue.use(Input)
Vue.use(Tooltip)
Vue.use(Collapse)
Vue.use(CollapseItem)
Vue.use(Tag)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Row)
Vue.use(Col)
Vue.use(Dialog)
Vue.use(Tree)
Vue.use(Loading.directive);

Vue.config.productionTip = false
Vue.prototype.$echarts = echarts
Vue.prototype.$loading = Loading.service

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
